package cn.fan.testfunction.devise.single;

/**
 * 静态内部类
 *只适用于静态域场景
 * @author HTHLKJ
 * @version 1.0
 * @date 2021/11/11 10:36
 */
public class InnerClassSingle {
    private InnerClassSingle() {
    }

    private static class InnerHolder{
        private static final InnerClassSingle INSTANCE = new InnerClassSingle();
    }

    public static InnerClassSingle  getInstance(){
        return InnerHolder.INSTANCE;
    }
}
